package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.beans.Customizer;

@SpringBootApplication
@RestController
public class DemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(DemoApplication.class, args);
	}
	@GetMapping
	Customer getCustomer(){
		return new Customer(6L,"中国人");

	}
	class Customer{
		private final Long id;




		public Long getId() {
			return id;
		}

		public String getName() {
			return name;
		}

		public Customer(Long id, String name) {
			this.id = id;
			this.name = name;
		}

		private final String name;
	}
	

}
